/* =========================
   KRANE DIGITAL EMPIRE
   Electric Steel Tech Theme
   ========================= */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --bg-main: #060b14;
  --bg-glass: rgba(10, 20, 40, 0.6);
  --electric-blue: #1ea7ff;
  --steel-blue: #0f3c6e;
  --text-main: #e8f1ff;
  --text-muted: #a9b7d0;
  --accent: #00d4ff;
  --shadow-glow: 0 0 40px rgba(30, 167, 255, 0.35);
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #0b1630, #030712);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ---------- PARTICLE CANVAS ---------- */
#techParticles {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(5,10,25,.85), transparent);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.logo span {
  color: var(--electric-blue);
}

.nav nav a {
  margin-left: 28px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .3s ease;
}

.nav nav a:hover {
  color: var(--electric-blue);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6%;
}

.hero-content {
  max-width: 720px;
  animation: fadeUp 1.2s ease forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--electric-blue);
  text-shadow: var(--shadow-glow);
}

.hero p {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---------- BUTTON ---------- */
.primary-btn {
  margin-top: 28px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--electric-blue), var(--steel-blue));
  border: none;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(30, 167, 255, .6);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 110px 6%;
  text-align: center;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.section p {
  color: var(--text-muted);
  max-width: 720px;
  margin: auto;
  font-size: 1rem;
}

/* ---------- GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .4s ease, box-shadow .4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- STACK LIST ---------- */
.stack {
  list-style: none;
  margin-top: 30px;
}

.stack li {
  margin: 14px 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */
.cta {
  padding: 120px 6%;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(30,167,255,0.08));
}

/* ---------- FOOTER ---------- */
footer {
  padding: 40px 6%;
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
}

.socials {
  margin-top: 12px;
}

.socials a {
  margin: 0 12px;
  color: var(--electric-blue);
  text-decoration: none;
  font-weight: 500;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav nav {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }
}


.logo span {
  color: var(--electric-blue);
  font-weight: 900;
}

.card h3::before {
  content: "◼ ";
  color: var(--electric-blue);
}

.stack li {
  letter-spacing: 0.3px;
}




/* ================================
   LAB MICRO-ANIMATIONS
================================ */

/* Soft pulse for cards (lab energy) */
.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 170, 255, 0.15),
    transparent 60%
  );
  opacity: 0;
  animation: labPulse 6s infinite;
}

@keyframes labPulse {
  0%, 70% { opacity: 0; }
  80% { opacity: 0.4; }
  100% { opacity: 0; }
}

/* Scan-line effect (subtle, professional) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.15;
  animation: scanMove 8s linear infinite;
  z-index: 2;
}

@keyframes scanMove {
  from { background-position-y: 0; }
  to { background-position-y: 100px; }
}

/* Gentle hover reaction */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 140, 255, 0.25);
}



.empire-link {
  padding: 8px 14px;
  border: 1px solid var(--electric-blue);
  border-radius: 6px;
  color: var(--electric-blue);
  position: relative;
  overflow: hidden;
}

.empire-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0,170,255,0.4),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.empire-link:hover::after {
  transform: translateX(100%);
}

.empire-link:hover {
  background: rgba(0, 170, 255, 0.1);
}



.experiments .status {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  border-radius: 12px;
  border: 1px solid;
}

.status.live {
  color: #00ffcc;
  border-color: #00ffcc;
}

.status.beta {
  color: #ffaa00;
  border-color: #ffaa00;
}

.status.research {
  color: #888;
  border-color: #888;
}



/* Reveal animation */
.section,
.card,
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button feedback */
button.clicked {
  transform: scale(0.96);
}

/* Live pulse */
.status.live.pulse {
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.7);
}
